﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>机构-人员修改</title>
    <!--common-->
    <link href="/resources/src/css/admin.css" rel="stylesheet">
</head>
<body class="sticky-header">
    
    <section>
        <div class="left-side sticky-left-side">
            <div class="logo">
                <a href="javascript:;"><img src="//img3.tbcdn.cn/tfscom/TB13UCJKVXXXXaLXpXXSutbFXXX.jpg_100x100.jpg" alt=""></a> 
            </div>            
             <!--sidebar nav start-->
            <ul class="admin-nav">
                <li><a href="javascript:;">用户管理</a></li>
                <li><a href="javascript:;">项目管理</a></li>
                <li class="nav-active"><a href="javascript:;">机构管理</a></li>
                <li><a href="javascript:;">消息管理</a></li>
                <li><a href="javascript:;">用户行为数据</a></li>
                <li><a href="javascript:;">反馈内容</a></li>
                <li><a href="javascript:;">申请试用</a></li>
            </ul>
        </div>

        <div class="main-content">
            <!-- header section start-->
            <div class="header-section">
               <ul class="menu-right">
                   <li><a href="javascript:;"><i class="iconfont icon-user"></i> Soure</a></li>
               </ul>
            </div>
            <!-- header section end-->            
            <div class="wrapper">
                 <div class="org_content">
                    <form id="totalEdit">
                        <div class="item clearfix">
                            <div class="pull-left item-label">
                                <label for="total_edit_name">用户名称：</label>
                            </div>
                            <div class="pull-left" style="font-size: 16px;">张三丰</div>
                        </div>
                        <div class="item clearfix">
                            <div class="pull-left item-label">
                                <label for="total_edit_phone">手机号：</label>
                            </div>
                            <div class="pull-left">
                                <input type="text" id="total_edit_phone" name="total_edit_phone">
                            </div>
                        </div>  
                        <div class="item clearfix">
                            <div class="pull-left item-label">
                                <label for="total_edit_email">邮箱：</label>
                            </div>
                            <div class="pull-left">
                                <input type="text" id="total_edit_email" name="total_edit_email">
                            </div>
                        </div>   
                        <div class="item clearfix total_edit_btn">
                            <input type="submit" class="c_user_submit" value="确定">
                            <a href="javascript:;">取消</a>
                        </div>                 
                    </form>
                 </div>
            </div>
        </div>
    </section>
    
    <script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery.nicescroll/3.7.0/jquery.nicescroll.js"></script>  
    <script src="/resources/src/js/jquery.validate.min.js"></script>
    <script src="/resources/src/js/messages_zh.js"></script>  
    <script src="/resources/src/js/main.js"></script>
    <script>
        $("#totalEdit").validate({
            debug:true,
            rules: {
              total_edit_phone:{
                required:true,
                isPhone:true
              },
              total_edit_email:{
                required:true,
                email:true
              }
            },
            messages: {
               total_edit_phone:{
                 required: "请输入手机",
                 isPhone:'请输入正确的手机'
               },
               total_edit_email:{
                 required: "请输入邮箱",
                 email:'请输入正确的邮箱'
               }
            },
            submitHandler:function(form){
                
            }
        });
        jQuery.validator.addMethod("isPhone", function(value, element) {
            var phone = new RegExp(/^(((13[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/);
            return this.optional(element) || (phone.test(value));
        }, "请填写正确的手机号码");
    </script>
    
</body>
</html>